<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/searchJT"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:actionViewClass="android.widget.SearchView"
    android:fillViewport="true"
    android:showAsAction="collapseActionView|never"
    app:defaultNavHost="true">




        <androidx.constraintlayout.widget.ConstraintLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@color/darkbg"
            >

            <ImageView
                android:id="@+id/justType"
                android:layout_width="match_parent"
                android:layout_height="64dp"
                android:adjustViewBounds="true"
                android:layout_margin="8dp"
                android:background="@android:color/transparent"
                android:contextClickable="true"
                android:scaleType="centerInside"
                android:src="@drawable/shape"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent"
             />

            <EditText
                android:id="@+id/jtInput"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginStart="24dp"
                android:layout_marginEnd="72dp"
                android:background="@android:color/transparent"
                android:focusable="true"
                android:focusableInTouchMode="true"
                android:hint="Just Type..."
                android:scrollHorizontally="true"
                android:singleLine="true"
                android:imeOptions="flagNoExtractUi|actionSearch"
                android:maxLines="1"
                android:textColorHint="@color/white"
                android:textColor="@color/white"
                android:textSize="24sp"
                android:textStyle="italic"
                android:inputType="text"
                app:layout_constraintBottom_toBottomOf="@+id/justType"
                app:layout_constraintEnd_toEndOf="@+id/justType"
                app:layout_constraintStart_toStartOf="@+id/justType"
                app:layout_constraintTop_toTopOf="@+id/justType" />

            <ImageView
                android:layout_width="64dp"
                android:layout_height="64dp"
                android:layout_marginTop="48dp"
                app:layout_constraintStart_toEndOf="@+id/jtInput"
                app:layout_constraintEnd_toEndOf="@id/justType"
                app:layout_constraintTop_toTopOf="@id/justType"
                app:layout_constraintBottom_toTopOf="@id/jtInput"
                android:src="@drawable/search" />

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:visibility="visible"
                android:layout_marginTop="50dp">

            <androidx.core.widget.NestedScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toBottomOf="@+id/jtInput"
        android:layout_marginTop="16dp"
      >

        <LinearLayout
            android:id="@+id/justtype_scroller"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:nestedScrollingEnabled="false"
            android:orientation="vertical"
            android:visibility="visible"
            app:layout_constraintEnd_toEndOf="@+id/jtInput"
            app:layout_constraintTop_toBottomOf="@+id/jtInput"
            tools:visibility="visible">

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/justtype_view"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:animationCache="true"
                android:nestedScrollingEnabled="true"
                app:layout_constraintBottom_toTopOf="@+id/justtype_contacts"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/jtInput">

            </androidx.recyclerview.widget.RecyclerView>

            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/justtype_contacts"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="16dp"
                android:animationCache="true"
                android:nestedScrollingEnabled="false"
                app:layout_constraintBottom_toTopOf="@+id/justtype_search"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/justtype_view">

            </androidx.recyclerview.widget.RecyclerView>


            <androidx.recyclerview.widget.RecyclerView
                android:id="@+id/justtype_search"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="16dp"
                android:animationCache="true"
                android:nestedScrollingEnabled="false"
                android:paddingBottom="80dp"
                app:layout_constraintBottom_toBottomOf="@+id/justtype_scroller"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/justtype_contacts">

            </androidx.recyclerview.widget.RecyclerView>

        </LinearLayout>
            </androidx.core.widget.NestedScrollView>

                <FrameLayout
                    android:id="@+id/touchArea"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:visibility="visible" />

            </FrameLayout>
      </androidx.constraintlayout.widget.ConstraintLayout>

</androidx.constraintlayout.widget.ConstraintLayout>
